from django.conf.urls.defaults import *
from django import http

urlpatterns = patterns('',
    # Example:
     (r'^webtest/polls/', include('webtest.web.polls.urls')),
     (r'^webtest/authapp/', include('webtest.web.authapp.urls')),

    # Uncomment this for admin:
     (r'^admin/', include('django.contrib.admin.urls')),

     (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
     (r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login'),
     (r'^accounts/profile/$', lambda x: http.HttpResponsePermanentRedirect('/%s'%(x if isinstance(x,basestring) else ''))),
)
